package com.yu.crm.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.models.auth.In;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author pan
 * @since 2020-07-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CrmEarlyWarningDiscernArea对象", description="识别预警区域对象")
public class CrmEarlyWarningDiscernArea implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    @ApiModelProperty("功能名称")
    @TableField("function_name")
    private String functionName;

    @ApiModelProperty("预警识别ID")
    @TableField("early_warning_discern_id")
    private Long earlyWarningDiscernId;

    @ApiModelProperty("区域ID")
    @TableField("area_id")
    private Long areaId;

    @ApiModelProperty("楼栋ID")
    @TableField("building_id")
    private String buildingId;

    @ApiModelProperty("摄像头ID")
    @TableField("camera_id")
    private String cameraId;

    @ApiModelProperty("描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "创建时间", required = false)
    @TableField("gmt_create")
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "修改时间", required = false)
    @TableField("gmt_modified")
    private LocalDateTime gmtModified;

    @ApiModelProperty(value = "是否已删除 yes_no", required = false)
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty("区域名字")
    @TableField("area_name")
    private String areaName;

    @ApiModelProperty("摄像头名称")
    @TableField("camera_name")
    private String cameraName;

    @ApiModelProperty("地址信息")
    @TableField("location")
    private String location;


    @ApiModelProperty("轮询计划")
    @TableField("polling_plan")
    private String pollingPlan;

    @ApiModelProperty("轮询计划")
    @TableField("enlarge")
    private String enlarge;

//    @ApiModelProperty("开始时间")
//    @TableField("start_time")
//    private Date startTime;
//
//    @ApiModelProperty("结束时间")
//    @TableField("end_time")
//    private Date endTime;
//
//    @ApiModelProperty("保存时间段")
//    @TableField("time_slot")
//    private String timeSlot;

    @ApiModelProperty("保存时间")
    @TableField("save_time")
    private String saveTime;

    @ApiModelProperty("ai-类型,0 人脸识别；1 安全帽识别")
    @TableField("ai_type")
    private String aiType;

//    @ApiModelProperty("场景标识")
//    @TableField(exist = false)
//    private String appScenarios;

    @ApiModelProperty("计划时间ID")
    @TableField("time_scheme")
    private String timeScheme;

//    @TableField(exist = false)
//    private LocalDateTime startDate;

//    @TableField(exist = false)
//    private LocalDateTime endDate;

    @TableField(exist = false)
    private List<String> cameraIds;
}
